package demo1210.am.amlianxi;

/*
动物类:

 */
public abstract class Animal {
    private String kind;
    private int age;

    public Animal(String kind, int age) {
        this.kind = kind;
        this.age = age;
    }

    public Animal() {
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 吃..
     */
    public abstract void eat();

    /**
     * 睡觉..
     */
    public abstract void sleep();

    public void show(){
        System.out.println(kind+"=="+age);
    }
}
